import request from '@/utils/request'

// 查询管理列表
export function listStoreManage(query) {
  return request({
    url: '/store/storeManage/list',
    method: 'get',
    params: query
  })
}

// 查询管理详细
export function getStoreManage(id) {
  return request({
    url: '/store/storeManage/' + id,
    method: 'get'
  })
}

// 新增管理
export function addStoreManage(data) {
  return request({
    url: '/store/storeManage',
    method: 'post',
    data: data
  })
}

// 修改管理
export function updateStoreManage(data) {
  return request({
    url: '/store/storeManage',
    method: 'put',
    data: data
  })
}

// 删除管理
export function delStoreManage(id) {
  return request({
    url: '/store/storeManage/' + id,
    method: 'delete'
  })
}

// 状态开关
export function resetStatus(data) {
  return request({
    url: '/store/storeManage/resetStatus',
    method: 'post',
    data: data
  })
}

// 获取商户网址
export function getStoreAddress(query) {
  return request({
    url: '/store/storeManage/getStoreAddress',
    method: 'get',
    params: query
  })
}
